package com.yc.cloud.sys.api;

import com.yc.cloud.common.model.response.Outcome;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨智杰
 * @date 2021/8/13 13:17
 */
@RestController
public class SysApi {

    @RequestMapping("/notLogin")
    public Outcome notLogin() {
        return Outcome.success("未登录!").setCode(401);
    }

    @RequestMapping("/nonAuthority")
    public Outcome nonAuthority() {
        return Outcome.success("无权限!").setCode(403);
    }
}
